package com.whc.gulimall.authserver.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author angaoen
 */
@Data
public class RegisterVo {

    @NotEmpty(message = "用户名不得为空")
    @Length(min = 6, max = 12, message = "用户名必须是6-12个字符")
    private String username;

    @NotEmpty(message = "密码不得为空")
    @Length(min = 6, max = 12, message = "密码必须是6-12个字符")
    private String password;

    @NotEmpty(message = "手机号不得为空")
    private String phone;

    @NotEmpty(message = "验证码不得为空")
    private String code;

}
